/*****************************************************************************
	DD Type(BLDCM) Washing Machine Program
	Model					: Panacea-PJT
	Version					: Ver 1.0
	CPU						: MN103SFA5K
	File type				: C source file
	File name				: InterruptVectorTable.c
	Included Funtion		:
	Contents				: define interrupt vector table

	be coded by KIM KYUNG HOON
********************************************************************************/
#include "../../2.Component/Include/Cmp_Onboarding.h"

#include "../../3.Library/Include/general.h"
#include "../../3.Library/Include/Int.h"

#include "../../5.Hardware/Include/m470_int.h"
#include "../../5.Hardware/Include/m470_wdt.h"

#include "../../6.VariableSource/Include/Vable_ModelInformation.h"


extern void MWI_UART_DispStartUartInterrupt(T_DispInfo*,char);		//UART0
extern void MWI_UART_PCStartUartInterrupt(T_DispInfo*,char);		//UART2
extern void VC_Get_Vdc(void);

extern T_DispInfo gstDisplayInfo;

UINT8 gucWdt_Nmi_Count = 0;

typedef void( *T_intfunc )( void );
typedef union { T_intfunc __fun; void * __ptr; } T_intvec_elem;

void NMI_Handler(void)					/* NMI Handler																	*/
{
	gucWdt_Nmi_Count++;
	if (gucWdt_Nmi_Count >= 5)
	{
		API_WDT_RESET_Init();
	}
	else
	{
		API_WDT_Set_WdtClr();
	}
}

void HardFault_Handler(void)			/* Hard Fault Handler															*/
{}
void MemManage_Handler(void)			/* MPU Fault Handler															*/
{}
void BusFault_Handler(void)				/* Bus Fault Handler															*/
{}
void UsageFault_Handler(void)			/* Usage Fault Handler															*/
{}
void SVC_Handler(void)					/* SVCall Handler																*/
{
	static UINT32 SVClog = 0;
        SVClog++;
}
void DebugMon_Handler(void)				/* Debug Monitor Handler														*/
{}
void PendSV_Handler(void)				/* PendSV Handler																*/
{
	static UINT32 PendSVlog = 0;
        PendSVlog++;
}
void SysTick_Handler(void)				/* SysTick Handler																*/
{
	static UINT32 SysTicklog = 0;
        SysTicklog++;
}
void INT0_IRQHandler(void)				/* 0:  Interrupt pin (PH0/96 pin(-FYFG)/98 pin(-FYDFG))							*/
{}
void INT1_IRQHandler(void)				/* 1:  Interrupt pin (PH1/95 pin(-FYFG)/97 pin(-FYDFG))							*/
{}
void INT2_IRQHandler(void)				/* 2:  Interrupt pin (PH2/94 pin(-FYFG)/96 pin(-FYDFG))							*/
{}
void INT3_IRQHandler(void)				/* 3:  Interrupt pin (PA0/ 2 pin(-FYFG)/ 4 pin(-FYDFG))							*/
{}
void INT4_IRQHandler(void)				/* 4:  Interrupt pin (PA2/ 4 pin(-FYFG)/ 6 pin(-FYDFG))							*/
{}
void INT5_IRQHandler(void)				/* 5:  Interrupt pin (PE4/15 pin(-FYFG)/17 pin(-FYDFG))							*/
{}
void INTRX0_IRQHandler(void)			/* 6:  Serial reception (channel.0)                    							*/
{
	MWI_UART_DispStartUartInterrupt(&gstDisplayInfo, 0x01);			// Main-Display E?Interrupt
}

void INTTX0_IRQHandler(void)			/* 7:  Serial transmission (channel.0)                 							*/
{
	MWI_UART_DispStartUartInterrupt(&gstDisplayInfo,0x02);			// Main-Display E?Interrupt
}

void INTRX1_IRQHandler(void)			/* 8:  Serial reception (channel.1)                    							*/
{}
void INTTX1_IRQHandler(void)			/* 9:  Serial transmission (channel.1)                 							*/
{}
void INTVCN0_IRQHandler(void)			/* 10: Vector Engine interrupt A                       							*/
{}
void INTVCN1_IRQHandler(void)			/* 11: Vector Engine interrupt B                       							*/
{}
void INTEMG0_IRQHandler(void)			/* 12: PMD0 EMG interrupt                              							*/
{}
void INTEMG1_IRQHandler(void)			/* 13: PMD1 EMG interrupt                              							*/
{}
void INTOVV0_IRQHandler(void)			/* 14: PMD0 OVV interrupt                              							*/
{}
void INTOVV1_IRQHandler(void)			/* 15: PMD1 OVV interrupt                              							*/
{}
void INTADAPDA_IRQHandler(void)			/* 16: ADC A conversion triggered by PMD0 is finished  							*/
{}
void INTADBPDA_IRQHandler(void)			/* 17: ADC B conversion triggered by PMD0 is finished  							*/
{}
void INTADAPDB_IRQHandler(void)			/* 18: ADC A conversion triggered by PMD1 is finished  							*/
{}
void INTADBPDB_IRQHandler(void)			/* 19: ADC B conversion triggered by PMD1 is finished  							*/
{}
void INTTB00_IRQHandler(void)			/* 20: 16bit TMRB0 compare match detection 0/ Over flow							*/
{}
void INTTB01_IRQHandler(void)			/* 21: 16bit TMRB0 compare match detection 1           							*/
{}
void INTTB10_IRQHandler(void)			/* 22: 16bit TMRB1 compare match detection 0/ Over flow							*/
{}
void INTTB11_IRQHandler(void)			/* 23: 16bit TMRB1 compare match detection 1           							*/
{}
void INTTB40_IRQHandler(void)			/* 24: 16bit TMRB4 compare match detection 0/ Over flow							*/
{}
void INTTB41_IRQHandler(void)			/* 25: 16bit TMRB4 compare match detection 1           							*/
{}
void INTTB50_IRQHandler(void)			/* 26: 16bit TMRB5 compare match detection 0/ Over flow							*/
{}

void INTTB51_IRQHandler(void)			/* 27: 16bit TMRB5 compare match detection 1           							*/
{
	MWI_INT_Timer0();
}

void INTPMD0_IRQHandler(void)			/* 28: PMD0 PWM interrupt                              							*/
{}
void INTPMD1_IRQHandler(void)			/* 29: PMD1 PWM interrupt                              							*/
{}
void INTCAP00_IRQHandler(void)			/* 30: 16bit TMRB0 input capture 0                     							*/
{}
void INTCAP01_IRQHandler(void)			/* 31: 16bit TMRB0 input capture 1                     							*/
{}
void INTCAP10_IRQHandler(void)			/* 32: 16bit TMRB1 input capture 0                     							*/
{}
void INTCAP11_IRQHandler(void)			/* 33: 16bit TMRB1 input capture 1                     							*/
{}
void INTCAP40_IRQHandler(void)			/* 34: 16bit TMRB4 input capture 0                     							*/
{}
void INTCAP41_IRQHandler(void)			/* 35: 16bit TMRB4 input capture 1                     							*/
{}
void INTCAP50_IRQHandler(void)			/* 36: 16bit TMRB5 input capture 0                     							*/
{}
void INTCAP51_IRQHandler(void)			/* 37: 16bit TMRB5 input capture 1                     							*/
{}
void INT6_IRQHandler(void)				/* 38: Interrupt pin (PE6/17 pin(-FYFG)/19 pin(-FYDFG))							*/
{}
void INT7_IRQHandler(void)				/* 39: Interrupt pin (PE7/18 pin(-FYFG)/20 pin(-FYDFG))							*/
{}
void INTRX2_IRQHandler(void)			/* 40: Serial reception (channel.2)                    							*/
{
	MWI_UART_PCStartUartInterrupt(&gstDisplayInfo, 0x01);
}
void INTTX2_IRQHandler(void)			/* 41: Serial transmission (channel.2)                 							*/
{
	MWI_UART_PCStartUartInterrupt(&gstDisplayInfo, 0x02);
}
void INTADACPA_IRQHandler(void)			/* 42: AD0 conversion monitoring function interrupt A  							*/
{}
void INTADBCPA_IRQHandler(void)			/* 43: AD1 conversion monitoring function interrupt A  							*/
{}
void INTADACPB_IRQHandler(void)			/* 44: AD0 conversion monitoring function interrupt B  							*/
{}
void INTADBCPB_IRQHandler(void)			/* 45: AD1 conversion monitoring function interrupt B  							*/
{}
void INTTB20_IRQHandler(void)			/* 46: 16bit TMRB2 compare match detection 0/ Over flow							*/
{}
void INTTB21_IRQHandler(void)			/* 47: 16bit TMRB2 compare match detection 1           							*/
{}
void INTTB30_IRQHandler(void)			/* 48: 16bit TMRB3 compare match detection 0/ Over flow							*/
{}

void INTTB31_IRQHandler(void)			/* 49: 16bit TMRB3 compare match detection 1           							*/
{}

void INTCAP20_IRQHandler(void)			/* 50: 16bit TMRB2 input capture 0                     							*/
{}
void INTCAP21_IRQHandler(void)			/* 51: 16bit TMRB2 input capture 1                     							*/
{}
void INTCAP30_IRQHandler(void)			/* 52: 16bit TMRB3 input capture 0                     							*/
{}
void INTCAP31_IRQHandler(void)			/* 53: 16bit TMRB3 input capture 1                     							*/
{}
void INTADASFT_IRQHandler(void)			/* 54: ADC0 conversion started by software is finished 							*/
{}
void INTADBSFT_IRQHandler(void)			/* 55: ADC1 conversion started by software is finished 							*/
{}
void INTADATMR_IRQHandler(void)			/* 56: ADC0 conversion triggered by timer is finished  							*/
{}
void INTADBTMR_IRQHandler(void)			/* 57: ADC1 conversion triggered by timer is finished  							*/
{}

void INT8_IRQHandler(void)				/* 58: Interrupt pin (PA7/ 9 pin(-FYFG)/11 pin(-FYDFG))							*/
{}

void INT9_IRQHandler(void)				/* 59: Interrupt pin (PD3/33 pin(-FYFG)/35 pin(-FYDFG))							*/
{

}
void INTA_IRQHandler(void)				/* 60: Interrupt pin (PL1/21 pin(-FYFG)/23 pin(-FYDFG))							*/
{}
void INTB_IRQHandler(void)				/* 61: Interrupt pin (PL0/20 pin(-FYFG)/22 pin(-FYDFG))							*/
{}
void INTENC00_IRQHandler(void)			/* 62: Ender input0 interrupt                          							*/
{}
void INTENC01_IRQHandler(void)			/* 63: Ender input1 interrupt                          							*/
{}
void INTRX3_IRQHandler(void)			/* 64: Serial reception (channel.3)                    							*/
{}
void INTTX3_IRQHandler(void)			/* 65: Serial transmission (channel.3)                 							*/
{}
void INTTB60_IRQHandler(void)			/* 66: 16bit TMRB6 compare match detection 0 / Over flow						*/
{}
void INTTB61_IRQHandler(void)			/* 67: 16bit TMRB6 compare match detection 1           							*/
{}
void INTTB70_IRQHandler(void)			/* 68: 16bit TMRB7 compare match detection 0 / Over flow						*/
{}
void INTTB71_IRQHandler(void)			/* 69: 16bit TMRB7 compare match detection 1           							*/
{}
void INTCAP60_IRQHandler(void)			/* 70: 16bit TMRB6 input capture 0                     							*/
{}
void INTCAP61_IRQHandler(void)			/* 71: 16bit TMRB6 input capture 1                     							*/
{}
void INTCAP70_IRQHandler(void)			/* 72: 16bit TMRB7 input capture 0                     							*/
{}
void INTCAP71_IRQHandler(void)			/* 73: 16bit TMRB7 input capture 1                     							*/
{}
void INTC_IRQHandler(void)				/* 74: Interrupt pin (PJ6/74 pin(-FYFG)/76 pin(-FYDFG))							*/
{}
void INTD_IRQHandler(void)				/* 75: Interrupt pin (PJ7/73 pin(-FYFG)/75 pin(-FYDFG))							*/
{}
void INTE_IRQHandler(void)				/* 76: Interrupt pin (PK0/72 pin(-FYFG)/74 pin(-FYDFG))							*/
{}
void INTF_IRQHandler(void)				/* 77: Interrupt pin (PK1/71 pin(-FYFG)/73 pin(-FYDFG))							*/
{}
void INTVCT0_IRQHandler(void) 
{}
void INTVCT1_IRQHandler(void) 
{}
void INTSBI0_IRQHandler(void) 
{}
void INTTB80_IRQHandler(void) 
{}
void INTTB81_IRQHandler(void) 
{}
void INTTB90_IRQHandler(void) 
{}
void INTTB91_IRQHandler(void) 
{}
void INTCAP80_IRQHandler(void) 
{}
void INTCAP81_IRQHandler(void) 
{}
void INTCAP90_IRQHandler(void) 
{}
void INTCAP91_IRQHandler(void) 
{}
void INTDMACATC_IRQHandler(void) 
{}
void INTDMACAERR_IRQHandler(void) 
{}
void INTENC10_IRQHandler(void) 
{}
void INTENC11_IRQHandler(void) 
{}
